package countDown2;
import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.BevelBorder;
import javax.swing.border.Border;

import countDown2.BackgroundImagePanel;

public class doJFrame{
	public static void main(String args[]){
		JFrame jf = new JFrame();
		BackgroundImagePanel bip = new BackgroundImagePanel();
		bip.setLayout(null);
		
		Icon imageIcon = new ImageIcon(bip.getClass().getResource("image/2.png"));
		JLabel jlabel = new JLabel(imageIcon);
		jlabel.setBounds(20, 20, 120, 120);
		JTextField textField = new JTextField(10);
		textField.setHorizontalAlignment(0);
		textField.setBorder(BorderFactory.createEmptyBorder());
		textField.setBounds(30, 65, 100, 30);
		
		bip.add(jlabel);
		bip.add(textField);
		
		JLabel jlabel2 = new JLabel(imageIcon);
		jlabel2.setBounds(170, 20, 120, 120);
		JTextField textField2 = new JTextField(10);
		textField2.setHorizontalAlignment(0);
		textField2.setBorder(BorderFactory.createEmptyBorder());
		textField2.setBounds(180, 65, 100, 30);
		
		bip.add(jlabel2);
		bip.add(textField2);
		
		JLabel jlabel3 = new JLabel(imageIcon);
		jlabel3.setBounds(300, 20, 120, 120);
		JTextField textField3 = new JTextField(10);
		textField3.setHorizontalAlignment(0);
		textField3.setBorder(BorderFactory.createEmptyBorder());
		textField3.setBounds(310, 65, 100, 30);
		
		bip.add(jlabel3);
		bip.add(textField3);
		
		jf.add(bip, BorderLayout.CENTER);
		jf.add(new JButton("aaaaaaaaaaaaaa"), BorderLayout.SOUTH);
		jf.add(new JButton("aaaaaaaaaaaaaa"), BorderLayout.SOUTH);
		jf.pack();
		jf.setBounds(500, 200, 500, 500);
		jf.setVisible(true);
		jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
